home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 15 / BBS in a box XV-1.iso / Sysops / SitC Lister 2.2 / SitC Lister 2.2 Docs < prev    next >
Encoding:
Text File  |  1994-10-07  |  12.9 KB  |  333 lines  |  [ttro/ttxt]

  1.  
  2.  
  3.  
  4.  
  5. SitC Lister 2.2
  6. © 1993, 1994 by Paul Lemieux
  7.  
  8. Description:
  9.  
  10. SitC Lister is a utility for TeleFinder, FirstClass, and NovaLink Professional sysops, which allows the listing of their BBS file directories into text files, complete with descriptions.  This is done by extracting the SitC=0 resource out of the individual files.  SitC Lister begins in a source directory (hereafter called the Sources) of your choice and recursively lists all files and subdirectories contained in that directory. A user specified header and footer is applied to the output files (hereafter called the Outputs).  The user has the option to write the file's path, the description, size, and date modified.  The user can filter files from being written to the Output, based on age and/or size.  The Output will be written to the user-specified location, overwriting any existing Outputs.  Each Output maintains its own list of Sources, so that a Sysop can set up many different file listings and use the “Make During Tabby Events” and the “Make While Interactive” options to control when or if the Outputs are created.
  11.  
  12. What is it good for?
  13.  
  14. Lots of things!  Here are a few:
  15.     • creating online library listings with descriptions. 
  16.     • creating the magic FILES and ALLFILES listing that FIDONet uses for File Requests. 
  17.     • creating the Tabby "Request Directories" file. 
  18.     • creating the magic NEWFILES file can be created, listing files only of a certain age. 
  19.     • filtering large files out of your file request lists.
  20.  
  21. Installation:
  22.  
  23. If you want to use SitC Lister with Tabby, you must put it in the same folder with all the other Tabby modules.  If you don’t run Tabby, you can put SitC Lister anywhere you want.  SitC Lister will run on a locked disk, but the startup volume must not be locked, since SitC Lister makes frequent trips to the Preferences Folder.
  24.  
  25. First Time Launching:
  26.  
  27. The first time SitC Lister is launched, it will create its preferences file “SitC Lister2.prefs” in the Preferences folder.  The preference file is named differently than version 1.x was, so it won’t conflict with earlier versions of SitC Lister.   In addition, SitC Lister will create a “DefaultHeader” and a “DefaultFooter” file in the preferences folder.  They will be placed at the top and bottom of all output files, and will have some default text in them.  You can, of course, edit the DefaultHeader and DefaultFooter files with a conventional text editor.
  28.  
  29. Configuring SitC Lister:
  30.  
  31. Use the “Text File Type…” item in the Options menu to set what creator attributes all Outputs will have.  The default is “ttxt” (TeachText).  The following figure shows the dialog box used to select the creator type.
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41.  
  42. Use the Configure… item in the Options menu to create new Outputs and Sources.  The following figure illustrates what the Configure window looks like.
  43.  
  44.  
  45.  
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58.  
  59.  
  60.  
  61.  
  62. Once the Configure window is brought up, menu items in the Outputs and Sources menus will become active at times when they are appropriate.  For example, in the above figure, the Output entitled "ALLFILES" is selected, which brings up its associated list of Sources in the right scrolling list.  In that list, the "MPW" Source is selected.  Following is a list of the menus and what they do:
  63.  
  64. Edit Menu
  65.     The items in the edit menu perform their normally
  66.     expected behavior depending on what is selected.  If
  67.     an Output is selected, but no Sources are selected,
  68.     then the Cut, Copy, Paste, and Clear operate on the
  69.     currently selected Output.  If a Source is selected,
  70.     then Cut, Copy, Paste, and Clear operated on the
  71.     currently selected Source.  This enables the user
  72.     to quickly set up similar configurations for batch
  73.     or interactive operations.
  74.  
  75. Options Menu
  76.  
  77. Configure…
  78.     Configure the Outputs and Sources.
  79.  
  80. Text File Type…
  81.     Allows you to set the creator type of all Outputs.
  82.     
  83. QuickList…
  84.     This option will generate a file listing without any
  85.     configuration.  You will be prompted for a Source
  86.     path and an Output file, and a listing will be created
  87.     using mostly default options (Mac Text, no headers or
  88.     footers, Some Paths, Size in Bytes, no Date/Time stamp,
  89.     no Date, Write Description).  Note:  the QuickList
  90.     option is only available to registered owners of
  91.     SitC Lister.
  92.  
  93. QuickDiskList…
  94.     This option will have you select a source path, and
  95.     an output file name, and a recursive list with that
  96.     name will be created in each of the top level folders
  97.     in the source path.  The following picture gives a
  98.     better idea of what it does.  Note: the QuickDiskList
  99.     option is only available to registered owners of
  100.     SitC Lister.
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117. Outputs Menu
  118.  
  119. New Output File…
  120.     Creates a new Output with an empty list of Sources.
  121.  
  122. Change Output File…
  123.     Only applies to the currently selected Output.  Renames
  124.     the currently selected Output to the users choice.  The 
  125.     old Output file will not be deleted, so you will need to 
  126.     take care of that.
  127.  
  128. Select Header…
  129.     Only applies to the currently selected Output.  Selects a 
  130.     different file for the header.  The Output defaults to the 
  131.     DefaultHeader in the Preferences folder.
  132.  
  133. Select Footer…
  134.     Only applies to the currently selected Output.  Selects 
  135.     a different file for the footer.  The Output defaults to 
  136.     the DefaultFooter in the Preferences folder.
  137.  
  138. When to Create (heirarchichal menu)
  139.  
  140.     Make During Tabby Events
  141.         Only applies to the currently selected Output.  If 
  142.         SitC Lister is launched in the presence of a launch.next 
  143.         file, then all Outputs with this flag turned on will be 
  144.         created, and then the next program in the sequence will 
  145.         be launched.
  146.  
  147.     Make While Interactive
  148.         Only applies to the currently selected Output.  If the 
  149.         “Go” item in the Options menu is selected, then all 
  150.         Outputs with this flag turned on will be created.
  151.  
  152. File Types (heirarchichal menu)
  153.  
  154.     Mac Text
  155.         Only applies to the currently selected Output.  The 
  156.         Output will be a conventional Mac text file with a 
  157.         carriage return separating lines.
  158.  
  159.     PC Text
  160.         Only applies to the currently selected Output.  
  161.         The Output will be an MS-DOS type text file with 
  162.         a carriage return/linefeed combination separating lines.  
  163.         Note that if you use this option, you will need to 
  164.         convert any headers and footers to also contain linefeeds.  
  165.         In other words, SitC Lister writes the headers and footers 
  166.         without modifying them.
  167.  
  168. Date/Time Stamp
  169.     Only applies to the currently selected Output.  A line of 
  170.     text containing the current Date and Time will be placed 
  171.     in the Output directly after the Header.
  172.  
  173. Tab-Delimited Output File
  174.     Only applies to the currently selected Output.  The file
  175.     listing will be formatted in database format, with no
  176.     labels.  It will be written out in tab-delimited text
  177.     format as name<tab>size<tab>date<tab>description.  The
  178.     resulting files can be imported into a spreadsheet or
  179.     database.
  180.  
  181. Sources Menu
  182.  
  183. Source Directories (heirarchichal menu)
  184.  
  185.     Select Source Directory…
  186.         Only applies to the currently selected Output.  Creates 
  187.         a new Source
  188.  
  189.     Change Source Directory…
  190.         Only applies to the currently selected Source.  Changes 
  191.         the input directory.
  192.  
  193. Writing File Paths (heirarchichal menu)
  194.  
  195.     No Paths
  196.         Only applies to the currently selected Source.  No path 
  197.         information is written to the Output file.  Only the 
  198.         file’s name is written.  This is the default setting.
  199.  
  200.     Some Paths
  201.         Only applies to the currently selected Source.  Only the 
  202.         file’s name is written to the output, but the directory 
  203.         the files are found in is listed at the top of the list 
  204.         of the files in each directory and subdirectory.
  205.  
  206.     All Paths
  207.         Only applies to the currently selected Source.  No 
  208.         directory header information is listed, but the complete 
  209.         path to each file is written to the Output.
  210.  
  211.     Only Paths
  212.         Only applies to the currently selected Source.  Only 
  213.         the folder’s complete paths are written to disk.  This 
  214.         option is really for creating the Tabby “Request 
  215.         Directories” file.  You might want to define an empty 
  216.         header and empty footer file for this option.  All of 
  217.         the other Source options are ignored if this option is 
  218.         selected, since all of the other options only apply to 
  219.         files and not folders.
  220.  
  221. Writing File Sizes (heirarchichal menu)
  222.  
  223.     No Sizes
  224.         Only applies to the currently selected Source.  No 
  225.         file size is written on the line after the file’s 
  226.         name.
  227.  
  228.     Size in Bytes
  229.         Only applies to the currently selected Source.  The 
  230.         file’s size in bytes is written on the line after 
  231.         the file’s name.  This is the default setting.
  232.  
  233.     Size in Kilobytes
  234.         Only applies to the currently selected Source.  The 
  235.         file’s size in kilobytes is written on the line 
  236.         after the file’s name.
  237.  
  238. Write Descriptions
  239.     Only applies to the currently selected Source.  The file’s 
  240.     description will be written to the Output.  If no SitC=0 
  241.     resource is found, then the default text (No description 
  242.     available) is written.
  243.  
  244. Write Date Modified
  245.     Only applies to the currently selected Source.  The date 
  246.     the file was last modified will be written after the 
  247.     Name and Size (if turned on).
  248.  
  249. File Filters…
  250.     Only applies to the currently selected Source.  This 
  251.     option will bring up a dialog box that allows you to 
  252.     selectively filter files from the listing based on their 
  253.     date or size.  Files can be filtered based on being larger 
  254.     or smaller than a certain size, and/or by being older or 
  255.     newer than a certain date.  For example, some sysops 
  256.     might want to use this feature to create a NEWFILES list 
  257.     that contains all files less than 30 days old, and 
  258.     smaller than 300K (to restrict the sizes of FREQed files).
  259.     The following figure shows the file filter dialog box.
  260.  
  261.  
  262.  
  263.  
  264.  
  265.  
  266.  
  267.  
  268.  
  269.  
  270.  
  271.  
  272.  
  273.  
  274.  
  275.  
  276. Recursively Scan Source Folder
  277.     If this option is checked (the default) then SitC Lister
  278.     will recursively scan the source folder by looking in
  279.     every folder that is inside the source folder, and every
  280.     folder in that folder, and so on.   If it is not checked,
  281.     then SitC Lister will ignore folders that are in the
  282.     source folder.
  283.  
  284. Advanced Information
  285.  
  286. If anyone is not squeamish about using ResEdit, most of the text that the users see is contained in the resource fork of SitC Lister (unless I spaced something out in the interest of getting something running and then forgot it).  By hacking SitC Lister with ResEdit and changing the STR# resources, minor modifications to the Outputs can be made.  Note:  ResEdit is a powerful program, capable of totally messing up the operation of SitC Lister.  Only hack on a copy.  Here is a list of what is in the STR# resources that might be of interest to users.
  287.  
  288. STR# ID 128 - the status strings, including the default name for the QuickDiskList.
  289.  
  290. STR# ID 130 - the names of the default header and footer files, and the text that is written into the default header and footer files if none are present in the Preferences Folder.
  291.  
  292. STR# ID 131 - the labels that are written to the output files, such as the word "Name: " that shows up on the line prior to the file's name.
  293.  
  294. STR# ID 132 - the information that gets written to the Tabby log.
  295.  
  296. Use with MacKennel
  297.  
  298. In order to get SitC Lister to log its activity with MacKennel, you need to modify STR# 132 using ResEdit, otherwise logging will be written to :Tabby:Tabby Log if it is present at the same level as SitC Lister.
  299.  
  300. • The 5rd element should be changed to read ":FIDONet:Session Log" or wherever the partial (or complete) pathname to where MacKennel's Session Log file is, from where SitC Lister is.
  301.  
  302. Note:
  303. Under Tabby, SitC Lister checks for the launch.next file to determine if it needs to run in batch mode.  Since MacKennel doesn't create a launch.next file, SitC Lister also checks the process list to see if a copy of Runner is running, and runs in batch mode then.  If you use Runner for any tasks other than MacKennel, be forewarned that launching SitC Lister while Runner is running will result in batch processing being performed.
  304.  
  305. Copyright and Other Information:
  306.  
  307. SitC Lister is copyright © 1993, 1994 by Paul Lemieux.  It was developed using MPW Object Pascal, MPW C, and Prototyper.  The launch.next code was given to me (and gratefully accepted) by Chris Silverberg, ported from Think C to MPW C and linked into the other Pascal code.  The StandardGetFolder code was culled from Ken Kirksey (kkirksey1@aol.com) -- thanks Ken!.  Please send bug reports and suggestions via EMail if you can.  I can send you the registration file via EMail also, or can tell you how to create it over the phone.  SitC Lister has been tested on an LC II, PowerBook 170, and an SE30 running System 7.1.
  308.  
  309. What does it cost?
  310.  
  311. SitC Lister is shareware, with a $25 fee.  Bug reports and suggestions are always welcome.
  312.  
  313. SitC Lister may only be distributed by Arizona Macintosh Users Group on CD-ROM or media over 2 Mb in size.
  314.  
  315. Shareware $25
  316. Paul Lemieux
  317. 905 Union Street
  318. Cary, NC 27511
  319. AOL: PaulLX
  320. Internet: lpl@epavax.rtpnc.epa.gov
  321. AppleSeeds BBS
  322.         919-481-4896 (USR HST Dual Std 14.4)
  323.         919-469-5867 (Zoom V.32bis 14.4)
  324.         FIDONet 1:151/152
  325.  
  326. Limitations:
  327.  
  328. 1)  Requires System 7.
  329. 2)  Limit of 32 Output files, each with 32 Sources.
  330. 3)    Non-registered users can only create 2 Outputs each with 2 Sources.
  331. 4)    QuickList is only available to registered users.
  332. 5)    QuickDiskList is only available to registered users.
  333.